$(document).ready(function() {
	$("#checkboxall").click(function() {
		var checked_status = this.checked;
		$("input[name=checkall]").each(function() {
			this.checked = checked_status;
		});
	});
});

function employeeAdd() {
	

	$.post("employeeAction!save", 
	{userid:$("#userid").val(),
	name: $("#name").val(),
	gender: $("#gender").val(),
	tel: $("#tel").val(),
	dep: $("#dep").val(),
	pos: $("#pos").val(),
	empdate: $("#empdate").val()}
	,function(response) {
		$("#rightside").html(response);
	});
}